package com.hdax.dm.mapstucts;

import com.hdax.dm.beans.user.LinkUser;
import com.hdax.dm.dto.ticketbuyerlistDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "Spring")
public abstract class ticketbuyerlistDtoMapper {

    @Mapping(source ="id" ,target ="linkId" )
    public abstract ticketbuyerlistDto toTarget(LinkUser source);

    public abstract List<ticketbuyerlistDto> toTargetList(List<LinkUser> sources);
}
